package com.ranga.mselfcare.entity;

import android.os.Parcel;
import android.os.Parcelable;

public class TopUp implements Parcelable{
	private String msisdn;
	private String token;
	private double amount;
	private int method;
	
	public TopUp() {
		
	}
	
	public String getMsisdn() {
		return msisdn;
	}
	public void setMsisdn(String msisdn) {
		this.msisdn = msisdn;
	}
	public String getToken() {
		return token;
	}
	public void setToken(String token) {
		this.token = token;
	}
	public double getAmount() {
		return amount;
	}
	public void setAmount(double amount) {
		this.amount = amount;
	}
	public int getMethod() {
		return method;
	}
	public void setMethod(int method) {
		this.method = method;
	}
	@Override
	public int describeContents() {
		return 0;
	}
	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(msisdn);
		dest.writeString(token);
		dest.writeDouble(amount);
		dest.writeInt(method);
		
	}
	
	public static final Parcelable.Creator<TopUp> CREATOR = new Parcelable.Creator<TopUp>() {
		public TopUp createFromParcel(Parcel in) {
			return new TopUp(in);
		}

		public TopUp[] newArray(int size) {
			return new TopUp[size];
		}
	};

	public TopUp(Parcel source) {
		msisdn = source.readString();
		token = source.readString();
		amount = source.readDouble();
		method = source.readInt();
	}
}
